package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.TenantQuestionnaires;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TenantQuestionnairesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TenantQuestionnaires record);

    int insertSelective(TenantQuestionnaires record);

    TenantQuestionnaires selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantQuestionnaires record);

    int updateByPrimaryKey(TenantQuestionnaires record);

    List<Map<String, Object> > listQuestionnaires(Map<String, Object> map);

    long listQuestionnairesCount(Map<String, Object> map);

    TenantQuestionnaires findQuestionnaireById(Long id);

    List<TenantQuestionnaires> findQuestionnaireByTenantId(Map<String, Object> map);

    int delQuestionnaire(Long id);

    List<TenantQuestionnaires> findQnTaskQuestionnaires(Map<String, Object> map);

    long findQnTaskQuestionnairesCount(Map<String, Object> map);

    List<Map<String, Object>> listUsersByParameter(Map<String, Object> map);

    int listUsersByParameterCount(Map<String, Object> map);

    Map listAllQnTaskInfosQN(Map<String, Object> map);

    List<Map<String, Object>> getAllQnList(Map<String, Object> map);

    List<Map<String, Object>> listAllTenantQuestionnaires(Map<String, Object> map);
}